<?php
if(!$this->pageTitle && $this->activeNav){
	$this->pageTitle = $this->activeNav->getLabel();
}
if($this->pageTitle){
	$this->headTitle($this->pageTitle);
}
?>
<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<?php echo $this->headTitle() ?>
		
		<?php $this->headLink()->appendStylesheet($this->staticUri('/styles/application.css')) ?>
		<?php echo $this->headLink() ?>
		<script type="text/javascript" src="/scripts/canvastext.js"></script> 
        <script type="text/javascript" src="/scripts/mootools-1.2-core-nc.js"></script> 
        <script type="text/javascript" src="/scripts/mootools-1.2-more.js"></script> 
        <script type="text/javascript" src="/scripts/moowheel.js"></script> 
	</head>
</style>
	
	<?php
	if($this->pageTitle == "Map of publication location"){
	?>
		<body onload="initialize()" onunload="GUnload()">
	<?php
	}
	else{	
	?>
		<body>
	<?php } ?>
		<div id="page" class="color-page">
			<div id="header" class="clear-both color-content-dark">
				<div class="logo"></div>
				<?php echo $this->navigationMenu() ?>
			</div>
			<div class="header-bottom rounded-bottom color-content-dark"></div>
			<div id="content-wrapper" class="float-left">
				<div id="content" class="column with-sidebar">
					<div class="box">
						<div class="top rounded-top color-content-dark"></div>
						<div class="content color-content-dark">
							<div class="form">
								<div class="legend">
									<p class="title">
										<?php
											$breadcrumb 	= $this->navigation()->breadcrumbs();
											$breadcrumb		->setMinDepth(0);
											$breadcrumb		->setSeparator(' &rsaquo; ');
											$this->activeNav->setLabel($this->pageTitle?$this->pageTitle:$this->activeNav->getLabel());
											
											echo $breadcrumb;
										?>
									<!--  <a href="#">Organisatie</a> &rsaquo; Eussengroep--></p>
									<p class="description">
										<?php
											if($this->pageSummary){
												echo $this->pageSummary;
											}
										?>
									</p>
								</div>
								<div class="top rounded-top color-content-light"></div>
								<div class="content color-content-light">
										
										<?php echo $this->layout()->content ?>
									<div class="clear-fix"></div>
								</div>
								<div class="bottom rounded-bottom color-content-light"></div>
							</div>
						</div>
						<div class="bottom rounded-bottom color-content-dark"></div>
					</div>
				</div>
			</div>
			<div id="sidebar" class="float-right">
				<div class="widget">
					<div class="top rounded-top color-widget-dark"></div>
					<div class="content color-widget-dark">
						<h3>Search on anything</h3>
						<form class="common-form" action="<?php echo $this->baseUrl( '/thesis/search/index' )?>" method="get">
							<input type="text" class="text" name="q" /><br/>
							<input type="submit" class="text" value="Search!"/>
						</form>
					</div>
					<div class="bottom rounded-bottom color-widget-dark"></div>
				</div>
				<div class="widget">
					<div class="top rounded-top color-widget-light"></div>
					<div class="content color-widget-light">
						<?php echo $this->actionBar(); ?>
					</div>
					<div class="bottom rounded-bottom color-widget-light"></div>
				</div>
			</div>
			<div class="clear-fix"></div>
		</div>
		<div class="page-bottom color-page rounded-bottom"></div>
		<?php echo $this->headScript() ?>
	</body>
</html>
